import axios from './axios';
// 获取搜索窗口数据
export function searchlist(data) {
    return axios({
        method: 'get',
        url: '/search/index',
        params:data
    })
}
//清空搜索历史记录
export function delhistory(data) {
    return axios({
        method: 'post',
        url: '/search/clearhistory',
        data
    })
}
//实时搜索功能
export function searchhelp(data) {
    return axios({
        method: 'get',
        url: '/search/helper',
        params:data
    })
}
// 搜索框商品搜索
export function getsearchdata(data) {
    return axios({
        method: 'get',
        url: '/goods/list',
        params:data
    })
}